
component accessors="true" output="false" extends="AbsDelegate"
{

	property name="BlogFactory" type="it.millemultimedia.easyBlog.factory.BlogFactory";

	public it.millemultimedia.easyBlog.delegate.BlogDelegate function init( required Any dataObject ){
		
		variables.dataObject = arguments.dataObject;
		
		return this;
	}
	
	public it.millemultimedia.easyBlog.validator.BlogValidator function getValidator(){
		
		return getBlogFactory().getValidator();
	}
	
	public it.millemultimedia.easyBlog.model.Blog function createInstance(){
		
		return getBlogFactory().createInstance();
	}

	public void function create( required Any Blog ){
		
		variables.dataObject.create( argumentCollection=arguments );
		
	}

	public void function update( required Any Blog ){
		
		variables.dataObject.update( argumentCollection=arguments );
		
	}

	public it.millemultimedia.easyBlog.model.Blog function read( required Any Blog ){
	
		var list = "";
		var Blogs = variables.dataObject.read( arguments.Blog );
		
		
		Blog = getBlogFactory().get( Blogs );
		
		return Blog;
		
	}

	public void function delete( required Any Blog ){
		
		variables.dataObject.delete( argumentCollection=arguments );
		
	}

	public it.millemultimedia.easyBlog.model.Blog[] function list( required Any Blog, Numeric start=0, Numeric count=0 ){
	
		var list = "";
		var Blogs = variables.dataObject.list( arguments.Blog );
		
		list = getBlogFactory().list( Blogs, arguments.start, arguments.count );
		
		
		return list;
		
	}

}


